#include	"IState.h"
#include	"StateMachine.h"
#include	<assert.h>

IState::IState(unsigned int id, StateMachine * machine)
	:	m_id(id)
	,	m_machine(machine)
{
	assert(m_id != unsigned int(-1));
	assert(m_machine != 0);
	m_machine->addStatePointer(this);
}

IState::~IState()
{
	m_id = unsigned int(-1);
}

unsigned int IState::Id() const
{
	return m_id;
}

